
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>ADC的使用 · STM32HAL系列教程</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="Atonidas">
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-back-to-top-button/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search-pro/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-theme-lou/lou.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="CubeMX中ADC配置概览.html" />
    
    
    <link rel="prev" href="../SPI协议/Flash的使用及文件系统.html" />
    

    </head>
    <body>
         

<div class="book">
  <div class="header-inner">
    <!-- LOGO -->
    <div class="logo"></div>
    <span class="title"></span>

    <!-- Search -->
    
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>


    <!-- Nav -->
    <ul class="header-nav">
      <li>
        <a href="https://Gitee.com/atonidas" target="_blank">Gitee</a>
      </li>
    </ul>
  </div>

  <div class="book-summary">
    <div class="book-summary-title">文档目录</div>
     
    <nav role="navigation">


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../软件环境/">
            
                <a href="../软件环境/">
            
                    
                    软件环境
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../软件环境/VScode的使用.html">
            
                <a href="../软件环境/VScode的使用.html">
            
                    
                    VScode快速入门
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../软件环境/VSCode插件分享.html">
            
                <a href="../软件环境/VSCode插件分享.html">
            
                    
                    VScode插件分享
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="../软件环境/CubeMX简介.html">
            
                <a href="../软件环境/CubeMX简介.html">
            
                    
                    CubeMX简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="../软件环境/创建一个工程.html">
            
                <a href="../软件环境/创建一个工程.html">
            
                    
                    创建一个工程
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.5" data-path="../软件环境/Git版本管理.html">
            
                <a href="../软件环境/Git版本管理.html">
            
                    
                    Git版本管理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.6" data-path="../软件环境/创建一个快速开发模板.html">
            
                <a href="../软件环境/创建一个快速开发模板.html">
            
                    
                    创建一个快速开发模板
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../STM32的IO口/">
            
                <a href="../STM32的IO口/">
            
                    
                    STM32的IO口
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../STM32的IO口/点亮一个LED.html">
            
                <a href="../STM32的IO口/点亮一个LED.html">
            
                    
                    点亮一个LED
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../STM32的IO口/使用独立按键.html">
            
                <a href="../STM32的IO口/使用独立按键.html">
            
                    
                    使用独立按键
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../STM32中断/">
            
                <a href="../STM32中断/">
            
                    
                    STM32中断
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../STM32中断/CubeMX外部中断配置.html">
            
                <a href="../STM32中断/CubeMX外部中断配置.html">
            
                    
                    CubeMX外部中断配置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../STM32中断/HAL库外部中断程序.html">
            
                <a href="../STM32中断/HAL库外部中断程序.html">
            
                    
                    HAL库外部中断程序
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../STM32定时器/">
            
                <a href="../STM32定时器/">
            
                    
                    STM32定时器
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="../STM32定时器/定时器简单中断程序.html">
            
                <a href="../STM32定时器/定时器简单中断程序.html">
            
                    
                    定时器简单中断程序
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="../STM32定时器/硬件PWM输出.html">
            
                <a href="../STM32定时器/硬件PWM输出.html">
            
                    
                    硬件PWM输出
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="../STM32定时器/DMA输出PWM控制WS2812.html">
            
                <a href="../STM32定时器/DMA输出PWM控制WS2812.html">
            
                    
                    DMA输出PWM控制WS2812
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../STM32串口/">
            
                <a href="../STM32串口/">
            
                    
                    STM32串口
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="../STM32串口/串口发送及中断接收.html">
            
                <a href="../STM32串口/串口发送及中断接收.html">
            
                    
                    串口发送及中断接收
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="../STM32串口/串口的格式化输出.html">
            
                <a href="../STM32串口/串口的格式化输出.html">
            
                    
                    串口的格式化输出
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="../STM32串口/串口DMA传输.html">
            
                <a href="../STM32串口/串口DMA传输.html">
            
                    
                    串口DMA传输
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.4" data-path="../STM32串口/简单协议编写.html">
            
                <a href="../STM32串口/简单协议编写.html">
            
                    
                    简单协议编写
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../SPI协议/">
            
                <a href="../SPI协议/">
            
                    
                    SPI协议
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="../SPI协议/CubeMX配置及主要函数.html">
            
                <a href="../SPI协议/CubeMX配置及主要函数.html">
            
                    
                    CubeMX配置及主要参数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="../SPI协议/OLED驱动移植.html">
            
                <a href="../SPI协议/OLED驱动移植.html">
            
                    
                    OLED驱动移植
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3" data-path="../SPI协议/LVGL移植显示.html">
            
                <a href="../SPI协议/LVGL移植显示.html">
            
                    
                    LVGL移植显示
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.4" data-path="../SPI协议/Flash的使用及文件系统.html">
            
                <a href="../SPI协议/Flash的使用及文件系统.html">
            
                    
                    Flash的使用及文件系统
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter active" data-level="1.8" data-path="./">
            
                <a href="./">
            
                    
                    ADC的使用
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.1" data-path="CubeMX中ADC配置概览.html">
            
                <a href="CubeMX中ADC配置概览.html">
            
                    
                    CubeMX中ADC配置概览
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.2" data-path="查询阻塞方式.html">
            
                <a href="查询阻塞方式.html">
            
                    
                    查询阻塞方式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3" data-path="中断方式.html">
            
                <a href="中断方式.html">
            
                    
                    中断方式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.4" data-path="DMA方式.html">
            
                <a href="DMA方式.html">
            
                    
                    DMA方式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.5" data-path="应用示例.html">
            
                <a href="应用示例.html">
            
                    
                    应用示例
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="../其他代码整合搬运/">
            
                <a href="../其他代码整合搬运/">
            
                    
                    其他代码整合搬运
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.1" data-path="../其他代码整合搬运/MultiButton.html">
            
                <a href="../其他代码整合搬运/MultiButton.html">
            
                    
                    MultiButton
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.2" data-path="../其他代码整合搬运/EasyLogger.html">
            
                <a href="../其他代码整合搬运/EasyLogger.html">
            
                    
                    EasyLogger
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.3" data-path="../其他代码整合搬运/letter-shell.html">
            
                <a href="../其他代码整合搬运/letter-shell.html">
            
                    
                    letter-shell
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.4" data-path="../其他代码整合搬运/EasyFlash.html">
            
                <a href="../其他代码整合搬运/EasyFlash.html">
            
                    
                    EasyFlash
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.5" data-path="../其他代码整合搬运/时间片调度.html">
            
                <a href="../其他代码整合搬运/时间片调度.html">
            
                    
                    时间片调度
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="../加入我们/">
            
                <a href="../加入我们/">
            
                    
                    加入我们
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.10.1" data-path="../加入我们/Gitbook环境.html">
            
                <a href="../加入我们/Gitbook环境.html">
            
                    
                    Gitbook环境
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.2" data-path="../加入我们/Markdown语法简介.html">
            
                <a href="../加入我们/Markdown语法简介.html">
            
                    
                    Markdown语法
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.3" data-path="../加入我们/编辑器推荐.html">
            
                <a href="../加入我们/编辑器推荐.html">
            
                    
                    编辑器推荐
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.4" data-path="../加入我们/工程文件说明.html">
            
                <a href="../加入我们/工程文件说明.html">
            
                    
                    工程文件说明
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.5" data-path="../加入我们/提交注意事项.html">
            
                <a href="../加入我们/提交注意事项.html">
            
                    
                    提交注意事项
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>

</nav>
     
  </div>

  <!-- Content nav -->
  <div class="book-anchor">
    <div class="book-anchor-title"></div>

    <div class="book-anchor-body"></div>
  </div>

  <div class="book-body">
    
    <div class="body-inner">
       

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >ADC的使用</a>
    </h1>
</div>



      <div class="page-wrapper" tabindex="-1" role="main">
        <div class="page-inner">
          
<div id="book-search-results">
    <div class="search-noresults">
    
          <section class="normal markdown-section">
             <p><span id="hidden-autonumber"></span></p>
<h1 class="article-title" id="adc&#x7684;&#x4F7F;&#x7528;">ADC&#x7684;&#x4F7F;&#x7528;</h1>

<h1 id="adc&#x7B80;&#x4ECB;">ADC&#x7B80;&#x4ECB;</h1>
<blockquote>
<p>&#x672C;&#x7AE0;&#x53C2;&#x8003;&#x6587;&#x7AE0;&#xFF1A;<a href="https://blog.csdn.net/as480133937/article/details/99627062" target="_blank">https://blog.csdn.net/as480133937/article/details/99627062</a></p>
</blockquote>
<h2 id="&#x4EC0;&#x4E48;&#x662F;adc">&#x4EC0;&#x4E48;&#x662F;ADC</h2>
<p>ADC&#x662F;<strong>Analog-to-Digital Converter</strong>&#x7684;&#x7F29;&#x5199;&#xFF0C;&#x6307;&#x6A21;&#x62DF;/&#x6570;&#x5B57;&#x8F6C;&#x6362;&#x5668;&#xFF0C;&#x662F;&#x6307;&#x5C06;&#x8FDE;&#x7EED;&#x53D8;&#x91CF;&#x7684;<strong>&#x6A21;&#x62DF;&#x4FE1;&#x53F7;</strong>&#x8F6C;&#x6362;&#x4E3A;&#x79BB;&#x6563;&#x7684;<strong>&#x6570;&#x5B57;&#x4FE1;&#x53F7;</strong>&#x7684;&#x5668;&#x4EF6;&#x3002;&#x5728;&#x5B9E;&#x9645;&#x5E94;&#x7528;&#x4E2D;&#xFF0C;&#x5F88;&#x591A;&#x7684;&#x4FE1;&#x53F7;&#x6216;&#x8005;&#x53C2;&#x6570;&#x5E76;&#x4E0D;&#x90FD;&#x662F;&#x901A;&#x8FC7;&#x534F;&#x8BAE;&#x8BFB;&#x53D6;&#x5230;&#x7684;<strong>&#x6570;&#x5B57;&#x91CF;</strong>,&#x800C;&#x662F;&#x5927;&#x81EA;&#x7136;&#x5B58;&#x5728;&#x5E7F;&#x6CDB;&#x7684;<strong>&#x6A21;&#x62DF;&#x91CF;</strong>&#x3002;&#x4F8B;&#x5982;&#x4E00;&#x4E2A;IO&#x7684;&#x7535;&#x5E73;&#x4EE5;&#x6570;&#x5B57;&#x89D2;&#x5EA6;&#x53EF;&#x4EE5;&#x7B80;&#x5355;&#x5730;&#x4EE5;&#x9AD8;&#x7535;&#x5E73;&#x7684;1&#x6216;&#x8005;&#x4F4E;&#x7535;&#x5E73;&#x7684;0&#x6807;&#x8BC6;&#xFF0C;&#x4F46;&#x662F;&#x5B83;&#x771F;&#x5B9E;&#x7535;&#x538B;&#x662F;&#x98D8;&#x5FFD;&#x4E0D;&#x5B9A;&#x7684;&#xFF0C;&#x4E0D;&#x80FD;&#x76F4;&#x63A5;&#x7528;0&#x548C;1&#x8868;&#x793A;&#xFF0C;&#x9AD8;&#x7535;&#x5E73;&#x7684;1&#x5B9E;&#x9645;&#x4E0A;&#x5BF9;&#x5E94;&#x7740;&#x8303;&#x56F4;&#x5185;&#x7684;<strong>&#x65E0;&#x9650;&#x4E2A;&#x8FDE;&#x7EED;&#x7684;&#x6A21;&#x62DF;&#x7535;&#x538B;</strong></p>
<p>&#x7531;&#x6B64;&#xFF0C;&#x6211;&#x4EEC;&#x9700;&#x8981;&#x628A;&#x6A21;&#x62DF;&#x7684;&#x7535;&#x538B;&#x8F6C;&#x6362;&#x4E3A;&#x7A0B;&#x5E8F;&#x4E2D;&#x53EF;&#x4EE5;&#x76F4;&#x63A5;&#x4F7F;&#x7528;&#x7684;&#x6570;&#x5B57;&#x91CF;&#xFF0C;&#x6BD4;&#x5982;&#x6211;&#x4EEC;&#x53EF;&#x4EE5;&#x628A;0-3.3V&#x8FDB;&#x884C;1000&#x7EC6;&#x5206;&#xFF0C;&#x90A3;&#x4E48;&#x4E00;&#x4EFD;&#x662F;3.3mv&#xFF0C;&#x8FD9;&#x65F6;&#x6211;&#x4EEC;&#x53EF;&#x4EE5;&#x7528;&#x4E00;&#x4E2A;&#x6574;&#x6570;500&#x8868;&#x793A;&#x76EE;&#x524D;IO&#x53E3;&#x4E0A;&#x7684;&#x7535;&#x538B;&#x4E3A;1.65V&#x3002;&#x5F53;&#x7136;&#x6211;&#x4EEC;&#x53EF;&#x4EE5;&#x52A0;&#x5927;&#x7EC6;&#x5206;&#xFF0C;&#x4EE5;&#x63D0;&#x9AD8;ADC&#x7684;&#x7CBE;&#x5EA6;&#xFF0C;&#x4E0D;&#x8FC7;&#x9664;&#x4E86;&#x7CBE;&#x5EA6;&#x6211;&#x4EEC;&#x4E5F;&#x5F97;&#x8003;&#x8651;&#x5B8C;&#x6210;&#x4E00;&#x6B21;&#x8F6C;&#x6362;&#x9700;&#x8981;&#x591A;&#x4E45;&#x7684;&#x65F6;&#x95F4;&#xFF0C;&#x7B49;&#x7B49;&#x3002;&#x8FD9;&#x4E9B;&#x4FBF;&#x662F;ADC&#x7684;&#x5173;&#x952E;&#x6307;&#x6807;</p>
<h2 id="adc&#x7684;&#x51E0;&#x4E2A;&#x5173;&#x952E;&#x8BCD;">ADC&#x7684;&#x51E0;&#x4E2A;&#x5173;&#x952E;&#x8BCD;</h2>
<ul>
<li><strong>&#x7535;&#x538B;&#x8F93;&#x5165;&#x8303;&#x56F4;</strong></li>
</ul>
<p><strong>ADC&#x4E00;&#x822C;&#x7528;&#x4E8E;&#x91C7;&#x96C6;&#x5C0F;&#x7535;&#x538B;&#xFF0C;&#x5176;&#x8F93;&#x5165;&#x503C;&#x4E0D;&#x80FD;&#x8D85;&#x8FC7;VDDA</strong>&#xFF0C;&#x5373;ADC&#x8F93;&#x5165;&#x8303;&#x56F4;&#xFF1A;VREF- &#x2264; VIN &#x2264; VREF+&#x3002;
<strong>&#x4E00;&#x822C;&#x628A;VSSA&#x548C;VREF- &#x63A5;&#x5730;&#xFF0C; VREF+ &#x548C; VDDA&#x63A5;3V3&#xFF0C;&#x90A3;&#x4E48;ADC&#x7684;&#x8F93;&#x5165;&#x8303;&#x56F4;&#x662F;0~3.3V</strong>&#xFF0C;&#x90E8;&#x5206;&#x82AF;&#x7247;&#x6CA1;&#x6709;VERF&#x5F15;&#x811A;&#xFF08;&#x5982;&#x6211;&#x4EEC;&#x7684;F401CD&#xFF09;&#xFF0C;&#x8FD9;&#x65F6;&#x5019;&#x7684;VERF&#x53D6;VDDA&#x7684;&#x503C;&#xFF0C;&#x4E3A;&#x4E86;ADC&#x7684;&#x51C6;&#x786E;&#x6027;&#xFF0C;&#x53EF;&#x4EE5;&#x7ED9;VERF&#x5F15;&#x811A;&#x63A5;&#x4E0A;&#x7535;&#x538B;&#x57FA;&#x51C6;&#x82AF;&#x7247;</p>
<ul>
<li><strong>&#x5206;&#x8FA8;&#x7387;</strong></li>
</ul>
<p>&#x4E0D;&#x540C;&#x7684;ADC&#x82AF;&#x7247;&#x7684;ADC&#x8F6C;&#x6362;&#x5206;&#x8FA8;&#x7387;&#x4E0D;&#x540C;&#xFF0C;&#x800C;STM32F401&#x5185;&#x90E8;&#x7684;ADC&#x8F6C;&#x6362;&#x5668;&#x6700;&#x5927;&#x652F;&#x6301;12bit&#x5206;&#x8FA8;&#x7387;&#x7684;ADC&#xFF0C;&#x90E8;&#x5206;&#x5176;&#x4ED6;&#x82AF;&#x7247;&#x53EF;&#x4EE5;&#x5230;14bit&#x3002;&#x4EE5;12bit&#x4E3A;&#x4F8B;&#xFF0C;&#x5408;&#x8BA1;&#x7684;&#x5206;&#x8FA8;&#x7387;&#x662F;0~4095&#x5171;4096&#x7EA7;&#xFF0C;&#x5982;&#x679C;&#x6B64;&#x65F6;&#x7684;&#x57FA;&#x51C6;&#x7535;&#x538B;&#x4F7F;&#x7528;&#x7535;&#x6E90;&#x7535;&#x538B;3.3V&#xFF0C;&#x90A3;&#x4E48;&#x4E00;&#x4E2A;&#x5206;&#x5EA6;&#x7EA7;&#x662F;3300/4096 = 0.806mv</p>
<ul>
<li><strong>&#x8F6C;&#x6362;&#x65F6;&#x95F4;</strong></li>
</ul>
<p>&#x4E00;&#x822C;&#x6765;&#x8BF4;&#xFF0C;ADC&#x7684;&#x5206;&#x8FA8;&#x7387;&#x8D8A;&#x9AD8;&#x9700;&#x8981;&#x66F4;&#x591A;&#x7684;&#x8F6C;&#x6362;&#x65F6;&#x95F4;&#xFF0C;&#x5728;CubeMX&#x914D;&#x7F6E;&#x65F6;&#x53EF;&#x4EE5;&#x770B;&#x5230;&#x4E0D;&#x540C;&#x7684;&#x5206;&#x8FA8;&#x7387;&#x9700;&#x8981;&#x591A;&#x5C11;&#x4E2A;ADC&#x7684;&#x65F6;&#x949F;&#x5468;&#x671F;&#xFF1A;</p>
<p><img src="&#x56FE;&#x7247;/&#x4E0D;&#x540C;&#x5206;&#x8FA8;&#x7387;&#x7684;&#x8F6C;&#x6362;&#x65F6;&#x95F4;.png" alt=""></p>
<p>&#x5728;&#x5B9E;&#x9645;&#x5E94;&#x7528;&#x4E2D;&#x9700;&#x8981;&#x6743;&#x8861;&#x5206;&#x8FA8;&#x7387;&#x548C;&#x901F;&#x5EA6;</p>
<ul>
<li><strong>&#x8F6C;&#x6362;&#x6A21;&#x5F0F;</strong></li>
</ul>
<p>1 &#x5355;&#x6B21;&#x8F6C;&#x6362;&#x6A21;&#x5F0F;&#xFF1A;ADC&#x53EA;&#x6267;&#x884C;&#x4E00;&#x6B21;&#x8F6C;&#x6362;</p>
<p>2 &#x8FDE;&#x7EED;&#x8F6C;&#x6362;&#x6A21;&#x5F0F;&#xFF1A;&#x8F6C;&#x6362;&#x7ED3;&#x675F;&#x4E4B;&#x540E;&#x9A6C;&#x4E0A;&#x5F00;&#x59CB;&#x65B0;&#x7684;&#x8F6C;&#x6362;</p>
<p>3 &#x626B;&#x63CF;&#x6A21;&#x5F0F;&#xFF1A;ADC&#x626B;&#x63CF;&#x88AB;&#x89C4;&#x5219;&#x901A;&#x9053;&#x548C;&#x6CE8;&#x5165;&#x901A;&#x9053;&#x9009;&#x4E2D;&#x7684;&#x6240;&#x6709;&#x901A;&#x9053;&#xFF0C;&#x5728;&#x6BCF;&#x4E2A;&#x7EC4;&#x7684;&#x6BCF;&#x4E2A;&#x901A;&#x9053;&#x4E0A;&#x6267;&#x884C;&#x5355;&#x6B21;&#x8F6C;&#x6362;&#x3002;&#x5728;&#x6BCF;&#x4E2A;&#x8F6C;&#x6362;&#x7ED3;&#x675F;&#x65F6;&#xFF0C;&#x8FD9;&#x4E00;&#x7EC4;&#x7684;&#x4E0B;&#x4E00;&#x4E2A;&#x901A;&#x9053;&#x88AB;&#x81EA;&#x52A8;&#x8F6C;&#x6362;&#x3002;&#x5982;&#x679C;&#x8BBE;&#x7F6E;&#x4E86;CONT&#x4F4D;&#xFF08;&#x5F00;&#x542F;&#x4E86;&#x8FDE;&#x7EED; &#x8F6C;&#x6362;&#x6A21;&#x5F0F;&#xFF09;&#xFF0C;&#x8F6C;&#x6362;&#x4E0D;&#x4F1A;&#x5728;&#x9009;&#x62E9;&#x7EC4;&#x7684;&#x6700;&#x540E;&#x4E00;&#x4E2A;&#x901A;&#x9053;&#x4E0A;&#x505C;&#x6B62;&#xFF0C;&#x800C;&#x662F;&#x518D;&#x6B21;&#x4ECE;&#x9009;&#x62E9;&#x7EC4;&#x7684;&#x7B2C;&#x4E00;&#x4E2A;&#x901A;&#x9053;&#x7EE7;&#x7EED;&#x8F6C;&#x6362;</p>
<p>4 &#x95F4;&#x65AD;&#x6A21;&#x5F0F;&#xFF1A;&#x89E6;&#x53D1;&#x4E00;&#x6B21;&#xFF0C;&#x8F6C;&#x6362;&#x4E00;&#x4E2A;&#x901A;&#x9053;&#xFF0C;&#x5728;&#x89E6;&#x53D1;&#xFF0C;&#x5728;&#x8F6C;&#x6362;&#x3002;&#x5728;&#x6240;&#x9009;&#x8F6C;&#x6362;&#x901A;&#x9053;&#x5FAA;&#x73AF;&#xFF0C;&#x7531;&#x89E6;&#x53D1;&#x4FE1;&#x53F7;&#x542F;&#x52A8;&#x65B0;&#x4E00;&#x8F6E;&#x7684;&#x8F6C;&#x6362;&#xFF0C;&#x76F4;&#x5230;&#x8F6C;&#x6362;&#x5B8C;&#x6210;&#x4E3A;&#x6B62;</p>
<p>&#x626B;&#x63CF;&#x6A21;&#x5F0F;&#x7B80;&#x5355;&#x7684;&#x8BF4;&#x662F;&#x4E00;&#x6B21;&#x5BF9;&#x6240;&#x6709;&#x6240;&#x9009;&#x4E2D;&#x7684;&#x901A;&#x9053;&#x8FDB;&#x884C;&#x8F6C;&#x6362;&#xFF0C;&#x6BD4;&#x5982;&#x5F00;&#x4E86;ch0&#xFF0C;ch1&#xFF0C;ch4&#xFF0C;ch5&#x3002; &#x2002;ch0&#x8F6C;&#x6362;&#x5B8C;&#x4EE5;&#x540E;&#x5C31;&#x4F1A;&#x81EA;&#x52A8;&#x8F6C;&#x6362;&#x901A;&#x9053;1,4,5&#x76F4;&#x5230;&#x8F6C;&#x6362;&#x5B8C;&#x8FD9;&#x4E2A;&#x8FC7;&#x7A0B;&#x4E0D;&#x80FD;&#x88AB;&#x6253;&#x65AD;&#x3002;&#x5982;&#x679C;&#x5F00;&#x542F;&#x4E86;&#x8FDE;&#x7EED;&#x8F6C;&#x6362;&#x6A21;&#x5F0F;&#xFF0C;&#x5219;&#x4F1A;&#x5728;&#x8F6C;&#x6362;&#x5B8C;ch5&#x4E4B;&#x540E;&#x5F00;&#x59CB;&#x65B0;&#x4E00;&#x8F6E;&#x7684;&#x8F6C;&#x6362;</p>
<ul>
<li><strong>&#x8F93;&#x5165;&#x901A;&#x9053;</strong></li>
</ul>
<p>STM32&#x4E0A;&#x7684;ADC&#x6570;&#x91CF;&#x6709;&#x9650;&#xFF0C;&#x4E00;&#x822C;&#x4E0D;&#x8D85;&#x8FC7;3&#x4E2A;&#xFF0C;&#x4E3A;&#x4E86;&#x6EE1;&#x8DB3;&#x591A;&#x8DEF;ADC&#x91C7;&#x96C6;&#x7684;&#x9700;&#x6C42;&#xFF0C;&#x6BCF;&#x4E2A;ADC&#x90FD;&#x4F1A;&#x6302;&#x5728;&#x590D;&#x6570;&#x7684;&#x901A;&#x9053;&#xFF0C;&#x53EF;&#x4EE5;&#x4F9D;&#x6B21;&#x91C7;&#x96C6;&#x591A;&#x8DEF;&#x7535;&#x538B;</p>
<ul>
<li><strong>&#x89C4;&#x5219;&#x901A;&#x9053;&#x3001;&#x6CE8;&#x5165;&#x901A;&#x9053;</strong></li>
</ul>
<p>&#x89C4;&#x5219;&#x901A;&#x9053;&#x76F8;&#x5F53;&#x4E8E;&#x4F60;&#x6B63;&#x5E38;&#x8FD0;&#x884C;&#x7684;&#x7A0B;&#x5E8F;&#xFF0C;&#x770B;&#x5B83;&#x7684;&#x540D;&#x5B57;&#x5C31;&#x53EF;&#x4EE5;&#x77E5;&#x9053;&#xFF0C;&#x5F88;&#x89C4;&#x77E9;&#xFF0C;&#x5C31;&#x662F;&#x6B63;&#x5E38;&#x6267;&#x884C;&#x7A0B;&#x5E8F;&#x3002;&#x800C;&#x6CE8;&#x5165;&#x901A;&#x9053;&#x53EF;&#x4EE5;&#x6253;&#x65AD;&#x89C4;&#x5219;&#x901A;&#x9053;&#xFF0C;&#x542C;&#x5B83;&#x7684;&#x540D;&#x5B57;&#x5C31;&#x77E5;&#x9053;&#x4E0D;&#x5B89;&#x5206;&#xFF0C;&#x5982;&#x679C;&#x5728;&#x89C4;&#x5219;&#x901A;&#x9053;&#x8F6C;&#x6362;&#x8FC7;&#x7A0B;&#x4E2D;&#xFF0C;<strong>&#x6709;&#x6CE8;&#x5165;&#x901A;&#x9053;&#x8FDB;&#x884C;&#x8F6C;&#x6362;&#xFF0C;&#x90A3;&#x4E48;&#x5C31;&#x8981;&#x5148;&#x8F6C;&#x6362;&#x5B8C;&#x6CE8;&#x5165;&#x901A;&#x9053;&#xFF0C;&#x7B49;&#x6CE8;&#x5165;&#x901A;&#x9053;&#x8F6C;&#x6362;&#x5B8C;&#x6210;&#x540E;&#xFF0C;&#x518D;&#x56DE;&#x5230;&#x89C4;&#x5219;&#x901A;&#x9053;&#x7684;&#x8F6C;&#x6362;&#x6D41;&#x7A0B;</strong>&#xFF0C;&#x7C7B;&#x4F3C;&#x4E2D;&#x65AD;&#x7A0B;&#x5E8F;&#xFF1A;</p>
<p><img src="&#x56FE;&#x7247;/&#x6CE8;&#x5165;&#x901A;&#x9053;.png" alt=""></p>
<h2 id="&#x76F8;&#x5E94;&#x8BA1;&#x7B97;">&#x76F8;&#x5E94;&#x8BA1;&#x7B97;</h2>
<p>&#x8BA1;&#x7B97;&#x4E3B;&#x8981;&#x662F;&#x628A;&#x91C7;&#x96C6;&#x5230;&#x7684;&#x6A21;&#x62DF;&#x7535;&#x538B;&#x8BA1;&#x7B97;&#x51FA;&#x539F;&#x672C;&#x7684;&#x6A21;&#x62DF;&#x7535;&#x538B;&#xFF0C;&#x4EE5;12bit&#x7684;ADC&#x5206;&#x8FA8;&#x7387;&#x8DDD;&#x79BB;&#xFF0C;&#x5047;&#x8BBE;&#x91C7;&#x96C6;&#x5230;&#x7684;ADC&#x503C;&#x4E3A;1500&#xFF0C;&#x8BA1;&#x7B97;&#x65B9;&#x6CD5;&#x4E3A;&#xFF1A;1500*3300/4096 = 1208mv&#xFF0C;&#x53CA;&#x8BBE;&#x91C7;&#x96C6;&#x5230;&#x7684;ADC&#x503C;&#x4E3A;adcVaule&#xFF0C;&#x539F;&#x8F93;&#x5165;&#x7684;&#x6A21;&#x62DF;&#x7535;&#x538B;&#x4E3A;Vi&#xFF0C;&#x90A3;&#x4E48;&#xFF1A;</p>
<center> Vi = adcVaule  * &#x6EE1;&#x91CF;&#x7A0B;&#x7535;&#x538B;&#x503C;/ &#x5206;&#x8FA8;&#x7387; </center>

<h1 id="&#x5E94;&#x7528;&#x53C2;&#x8003;">&#x5E94;&#x7528;&#x53C2;&#x8003;</h1>
<h2 id="&#x5355;io&#x53E3;&#x7684;&#x591A;&#x6309;&#x952E;&#x5B9E;&#x73B0;">&#x5355;IO&#x53E3;&#x7684;&#x591A;&#x6309;&#x952E;&#x5B9E;&#x73B0;</h2>
<p>&#x6709;&#x65F6;&#x5019;&#x6211;&#x4EEC;&#x60F3;&#x4F7F;&#x7528;&#x51E0;&#x4E2A;&#x72EC;&#x7ACB;&#x6309;&#x952E;&#xFF0C;&#x4F46;&#x662F;IO&#x53E3;&#x53C8;&#x4E0D;&#x4E00;&#x5B9A;&#x591F;&#x7528;&#xFF0C;&#x8FD9;&#x4E2A;&#x65F6;&#x5019;&#x53EF;&#x4EE5;&#x5F04;&#x51E0;&#x4E2A;&#x7535;&#x963B;&#x63A5;&#x51FA;&#x4E0D;&#x540C;&#x7684;&#x7535;&#x538B;&#xFF0C;&#x7136;&#x540E;&#x8FDE;&#x5230;&#x540C;&#x4E00;&#x4E2A;ADC&#x5F15;&#x811A;&#x4E0B;&#xFF0C;&#x8FD9;&#x6837;&#x901A;&#x8FC7;&#x8BFB;&#x53D6;ADC&#x7684;&#x503C;&#x5373;&#x53EF;&#x5224;&#x65AD;&#x6309;&#x4E0B;&#x7684;&#x662F;&#x54EA;&#x4E00;&#x4E2A;&#x6309;&#x952E;&#xFF1A;</p>
<p><img src="&#x56FE;&#x7247;/ADC&#x6309;&#x952E;.png" alt=""></p>
<h2 id="&#x7B80;&#x5355;&#x4E07;&#x7528;&#x8868;&#x8BBE;&#x8BA1;">&#x7B80;&#x5355;&#x4E07;&#x7528;&#x8868;&#x8BBE;&#x8BA1;</h2>
<p>&#x53EF;&#x4EE5;&#x5229;&#x7528;&#x4E0D;&#x540C;&#x963B;&#x503C;&#x7684;&#x7535;&#x963B;&#x5206;&#x538B;&#xFF0C;&#x914D;&#x5408;ADC&#x5B9E;&#x73B0;&#x7B80;&#x5355;&#x7684;&#x7535;&#x538B;&#x8868;&#x529F;&#x80FD;</p>
<h1 id="&#x6559;&#x7A0B;&#x5206;&#x5E03;">&#x6559;&#x7A0B;&#x5206;&#x5E03;</h1>
<ul>
<li><a href="CubeMX&#x4E2D;ADC&#x914D;&#x7F6E;&#x6982;&#x89C8;.html">CubeMX&#x4E2D;ADC&#x914D;&#x7F6E;&#x6982;&#x89C8;</a></li>
<li><a href="&#x67E5;&#x8BE2;&#x963B;&#x585E;&#x65B9;&#x5F0F;.html">&#x67E5;&#x8BE2;&#x963B;&#x585E;&#x65B9;&#x5F0F;</a></li>
<li><a href="&#x4E2D;&#x65AD;&#x65B9;&#x5F0F;.html">&#x4E2D;&#x65AD;&#x65B9;&#x5F0F;</a></li>
<li><a href="DMA&#x65B9;&#x5F0F;.html">DMA&#x65B9;&#x5F0F;</a></li>
<li><a href="&#x5E94;&#x7528;&#x793A;&#x4F8B;.html">&#x5E94;&#x7528;&#x793A;&#x4F8B;</a></li>
</ul>
 
          </section>
          
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>
 
        </div>
      </div>
      
    </div>

     
    <a
      href="../SPI协议/Flash的使用及文件系统.html"
      class="
        navigation navigation-prev
        
      "
      aria-label="Previous page: Flash的使用及文件系统"
    >
      <i class="fa fa-angle-left"></i>
    </a>
     
    <a
      href="CubeMX中ADC配置概览.html"
      class="
        navigation navigation-next
        
      "
      aria-label="Next page: CubeMX中ADC配置概览"
    >
      <i class="fa fa-angle-right"></i>
    </a>
      
  </div>
  <script>
    function showModal() {
      document.getElementsByClassName("mask")[0].style.display = "block";
      document.getElementsByClassName("donate-modal")[0].style.display =
        "block";
    }
    // 切换赞赏码
    function showDonateImg(num) {
      let alipay = "";
      let wxpay = ""
      if(num){
        wxpay = "hidden"
      }else{
        alipay = "hidden"
      }
      document.getElementById("wxpay-code").hidden = wxpay;
      document.getElementById("alipay-code").hidden = alipay;
      document.getElementsByName("pay-way")[num].checked = "checked";
    }

    // 关闭赞赏框
    function closeDonateModal() {
      document.getElementsByClassName("mask")[0].style.display = "none";
      document.getElementsByClassName("donate-modal")[0].style.display = "none";
    }

    var gitbook = gitbook || [];
    gitbook.push(function () {
      gitbook.page.hasChanged({"page":{"title":"ADC的使用","level":"1.8","depth":1,"next":{"title":"CubeMX中ADC配置概览","level":"1.8.1","depth":2,"path":"ADC的使用/CubeMX中ADC配置概览.md","ref":"./ADC的使用/CubeMX中ADC配置概览.md","articles":[]},"previous":{"title":"Flash的使用及文件系统","level":"1.7.4","depth":2,"path":"SPI协议/Flash的使用及文件系统.md","ref":"./SPI协议/Flash的使用及文件系统.md","articles":[]},"dir":"ltr"},"config":{"plugins":["-lunr","-sharing","-search","-favicon","-code","expandable-chapters","theme-lou","back-to-top-button","search-pro","livereload"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"livereload":{},"search-pro":{},"code":{"copyButtons":true},"theme-lou":{"hide-elements":[".summary .gitbook-link"],"color":"#8abcd1","copyright":{"author":"Atonidas"},"forbidCopy":false,"logo":"assets/logo.png","search-placeholder":"查找关键内容","copyrightLogo":"assets/copyright.png","favicon":"assets/favicon.ico","autoNumber":3},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"back-to-top-button":{},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"expandable-chapters":{}},"theme":"default","author":"Atonidas","lang":"zh-cn","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{"themeLou":{"nav":[{"target":"_blank","url":"https://Gitee.com/atonidas","name":"Gitee"}]}},"title":"STM32HAL系列教程","gitbook":"*","description":"Gitbook电子书示例项目"},"file":{"path":"ADC的使用/README.md","mtime":"2023-04-04T06:18:13.007Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2023-09-13T00:50:24.020Z"},"basePath":"..","book":{"language":""}});
    });
  </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-expandable-chapters/expandable-chapters.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-back-to-top-button/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-pro/jquery.mark.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search-pro/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-theme-lou/lou.js"></script>
        
    

    </body>
</html>

